package com.hts.spring05.controller;

import com.hts.spring05.biz.UserService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
public class UserController {
    // required:是否是必须 默认是必须的
    @Autowired(required = false) // spring的注解
//    @Resource // javajdk 自带的注解
            UserService userService;


    public String add() {
        userService.add();
        return "success";
    }


}
